package com.syh.jn.scm.infrastructure.repository.model.base.downstream;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 下游客户商品价格模板
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_DOWNSTREAM_GOODS_PRICE_TEMPLATE")
@EqualsAndHashCode(callSuper = true)
public class DownstreamPriceTemplateModel extends SuperBusinessModel {
  /**
   * 模板名
   */
  @Column(name = "NAME", columnDefinition = "varchar(50) COMMENT '模板名'")
  private String name;
  /**
   * 排序等级
   */
  @Column(name = "ORDER_LEVEL", columnDefinition = "int COMMENT '排序等级'")
  private Integer orderLevel;
  /**
   * 描述
   */
  @Column(name = "ATTACH_NOTE", columnDefinition = "varchar(300) COMMENT '描述'")
  private String attachNote;
  /**
   * 是否可用: -1停用,1可用
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '是否可用: -1停用1可用'")
  private Short status;
  /**
   * 创建时间
   */
  @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建时间'")
  private Long createTimeStamp;
  /**
   * 修改时间
   */
  @Column(name = "LAST_UPDATE_TIME_STAMP", columnDefinition = "bigint COMMENT '修改时间'")
  private Long lastUpdateTimeStamp;
  /**
   * 创建人id
   */
  @Column(name = "BROKERAGE_ID", columnDefinition = "bigint COMMENT '创建人id'")
  private Long brokerageId;
}
